import request from '@/utils/request'

// 登录
export const login = function (data) {
  return request({
    url: '/to_passport/login',
    method: 'post',
    data
  })
}

// 注册

export const register = function (data) {
  return request({
    url: '/to_passport/register',
    method: 'post',
    data
  })
}
